#include "d3dtexture.h"
#include "G.h"

namespace renderit
{
	namespace graphics
	{
		d3dtexture::d3dtexture(ID3D11Texture2D * t, const texture_desc& desc)
			: tex_(t)
		{
			desc_ = desc;
		}

		d3dtexture::~d3dtexture()
		{
			if (tex_)
			{
				tex_->Release();
				tex_ = NULL;
			}
		}
	}
}